<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <link rel="stylesheet" type="text/css" href="css/padrao.css" />
        <title>BrasilFA - O seu site de Futebol Americano</title>
    </h:head>
    <h:body>
        <h:form>
        <table width="60%" align="center" border="1">
            <h:inputHidden value="#{partidaBean.codigoCampeonato}" /> 
            <tr>
                <td align="center" colspan="2">
                    Quartas de final
                </td>
            </tr>
            <tr>
                <td align="center">
                    <ui:repeat value="#{partidaBean.getPartidas('esq', 'quartas', partidaBean.codigoCampeonato)}" var="p" >
                            <h:commandLink action="#{partidaBean.administrarPartida(p)}">
                                <div id="partida">
                                    <h:outputText value="#{p.time1.name}" />
                                    &nbsp;X&nbsp;
                                    <h:outputText value="#{p.time2.name}" />
                                </div>&nbsp;
                            </h:commandLink>
                    </ui:repeat>
                </td>
                <td align="center">
                    <ui:repeat value="#{partidaBean.getPartidas('dir', 'quartas', partidaBean.codigoCampeonato)}" var="p" >
                        <div id="partida">
                            <h:commandLink action="#{partidaBean.administrarPartida(p)}">
                                <h:outputText value="#{p.time1.name}" />
                                &nbsp;X&nbsp;
                                <h:outputText value="#{p.time2.name}" />
                            </h:commandLink>
                        </div>&nbsp;
                    </ui:repeat>
                </td>
            </tr>
        </table>
        </h:form>
    </h:body>
</html>

